export default {
  height:'auto',
  calcHeight: 30,
  tip: false,
  searchShow: true,
  searchMenuSpan: 6,
  border: true,
  index: true,
  viewBtn: true,
  selection: true,
  dialogClickModal: false,
  column: [
    {
      label: "岗位编号",
      prop: "code",
      type: "input",
      search: true,
      rules: [{
        required: true,
        message: "请输入岗位编号",
        trigger: "blur"
      }],
    },
    {
      label: "岗位名称",
      prop: "name",
      type: "input",
      search: true,
      rules: [{
        required: true,
        message: "请输入岗位名称",
        trigger: "blur"
      }],
    },
    {
      label: "密级",
      prop: "security",
      type: "select",
      rules: [{
        required: true,
        message: "请输入密级",
        trigger: "blur"
      }],
      search: true
    },
    {
      label: "有无子级",
      prop: "hasChild",
      type: "radio",
      dicData: [{
        label: '否',
        value: 0
      }, {
        label: '是',
        value: 1
      }],
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
      hide: true,
    },
    // {
    //   label: "是否方向分支",
    //   prop: "hasChild",
    //   type: "radio",
    //   dicData: [{
    //     label: '否',
    //     value: 0
    //   }, {
    //     label: '是',
    //     value: 1
    //   }],
    //   rules: [{
    //     required: true,
    //     message: "请选择方向分支",
    //     trigger: "blur"
    //   }],
    //   search: true
    // },
    {
      label: "是否发布",
      prop: "status",
      type: "radio",
      dicData: [{
        label: '否',
        value: '0'
      }, {
        label: '是',
        value: '1'
      }],
      addDisplay: false,
      editDisplay: false,
      viewDisplay: false,
    },
    {
      label: "岗位职责",
      prop: "note",
      type: "textarea",
      search: true,
      span: 24,
      overHidden: true,
      // component: 'avue-ueditor',
      // options: {
      //   action: '/blade-resource/oss/endpoint/put-file',
      //   props: {
      //     res: "data",
      //     url: "link",
      //   }
      // },
      // hide: true,
      // minRows: 6,
      rules: [{
        required: true,
        message: "请输入岗位职责",
        trigger: "blur"
      }],
    },
  ]
}
